package com.zkyc.framework.common.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("job_client_msg")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClientMsg {

    /**
     * 模块id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String ip;

    private String port;

    private String username;

    private String password;

    private String path;

    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)//执行insert语句是自动填充
    private Date createDate;//创建时间

    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)//执行insert语句时自动填充
    private Date updateDate;//更新时间

    @TableLogic//逻辑删除注解
    @TableField(fill = FieldFill.INSERT)//执行insert语句是自动填充默认值0
    private Integer isDeleted;//是否逻辑删除
}
